package com.zm.campus.service;

import com.zm.campus.pojo.RespBean;
import com.zm.campus.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zm.campus.vo.LoginReturnVo;
import com.zm.campus.vo.UserInfoVo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zm

 */
public interface IUserService extends IService<User> {

    //根据token从redis中获取当前登录用户的LoginReturnVo
    RespBean getNowUserInfo(String token);

    //根据用户id获取用户个人信息
    RespBean getUserById(String userId);

    //更新用户头像
    RespBean updateAvatar(MultipartFile headImgeFile, String userId) throws IOException;


    //完善个人信息
    RespBean updateUserInfo(UserInfoVo userInfoVo);

    //更新个性签名
    RespBean updatePersonSign(String personSign, String userId);

    RespBean authUserToAdmin(String supAdmin, String beUserId,String role);

    //根据用户id获取用户的基本信息
    RespBean getUserInfoByUid(String userId);
}
